package com.PAT.practice01;

import java.util.HashSet;
import java.util.Scanner;

/**
 * Created with IntelliJ IDEA.
 *
 * @Author: zjz
 * @Date: 2021/12/16/15:04
 * @Description:
 * @Target:
 */
public class 有多少不同的值 {
    public static void main(String[] args) {

        Scanner in = new Scanner(System.in);

        int N = in.nextInt();

        // 暴力,直接使用set
        int Sum = 0;
        HashSet<Integer> set = new HashSet<>();
        for (int i = 1; i <= N; i++) {
            Sum = (int)(i/2)+(int)(i/3)+(int)(i/5);
            set.add(Sum);
        }


        System.out.println(set.size());
    }
}
